export default {
    setuserlist(state, payload) {
        state.userlist = payload
    },
    setuserTitle(state, payload) {
        state.userTitle = payload
    },
    setuserinfo(state, payload) {
        state.userinfo = payload
    },
    setusercount(state, payload) {
        for (var key in payload) {
            state.page[key]= payload[key]
        }
        state.page.totalPage = Math.ceil(state.page.total / state.page.size)
    },
    setuserlogin(state, payload) {
        state.user = payload
    },
}